package com.zjj.spring.read.xml.aop.springaop.two;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 为了测试aop切面
 * 对方法增强
 * @author zhuangjiajie778
 */
public class GreetingTwoAroundAdvice implements MethodInterceptor {

	@Override
	public Object invoke(MethodInvocation invocation) throws Throwable {

		System.out.println("【two】--- GreetingTwoAroundAdvice before ---");		
		Object object = invocation.proceed();
		System.out.println("【two】 --- GreetingTwoAroundAdvice after ---");		
		return "[GreetingTwoAroundAdvice代理对返回值做的处理] - 真实返回值如下：[" + object + "]";
	}

}
